/*
 * @Author: dvlproad
 * @Date: 2023-10-31 18:59:47
 * @LastEditors: dvlproad
 * @LastEditTime: 2023-10-31 19:00:13
 * @Description: 
 */

import 'package:flutter/foundation.dart';

/// Mix-in [DiagnosticableTreeMixin] to have access to [debugFillProperties] for the devtool
// ignore: prefer_mixin
class TSSharedNormalViewContainerModel
    with ChangeNotifier, DiagnosticableTreeMixin {
  int _count = 0;

  int get count => _count;

  void addCount() {
    _count++;
    notifyListeners();
  }

  /// Makes `Counter` readable inside the devtools by listing all of its properties
  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties.add(IntProperty('count', count));
  }
}
